﻿using System;
using System.Data;
using System.Text;


namespace WinFormClient
{
    public class DataObjectEntry: DataObject
    {
        public DataObjectEntry(string tableName, string inherit, ColumnMapCollection col)
            : base(tableName, tableName, "Model", 50000,true, col)
        {
            _inherit = inherit;
        }

        string _inherit;
        public override void Builder()
        {
            string content
            = this.Header(_inherit)
            + this.Fields()
            //+ this.PropertyNames()
            + this.Property()
            + this.Footer();

            Tools.TextSaveToFile(content, "Model", this._className + ".cs");
        }
    }
}
